home *** CD-ROM | disk | FTP | other *** search
/ Aminet 39 / Aminet 39 (2000)(Schatztruhe)[!][Oct 2000].iso / Aminet / util / misc / cookietool.lha / cookietool / Makefile_unix < prev    next >
Encoding:
Makefile  |  2000-06-25  |  1.3 KB  |  56 lines

  1. # $Id: Makefile,v 1.5 2000/06/17 06:46:26 baran Exp $
  2. # slightly rewritten original Wilhelm Noeker's Makefile
  3.  
  4. targets        = cookietool cdbsplit 
  5. objects        = cookietool.o cdbsplit.o strstuff.o
  6. prefix        = usr
  7. binprefix    = $(prefix)/games
  8. manprefix    = $(prefix)/share/man/man6
  9. CC        = gcc
  10. RM        = rm
  11. INSTALL        = install
  12. CFLAGS        = -O2 -Wall
  13.  
  14. #RM        = C:delete
  15. #INSTALL    = C:copy
  16. #LOADLIBES    = -noixemul
  17.  
  18. build : $(targets)
  19.  
  20. strstuff.o : strstuff.c strstuff.h
  21.  
  22. cookietool   : cookietool.o strstuff.o
  23. cookietool.o : cookietool.c strstuff.h
  24.                                   
  25. cdbsplit   : cdbsplit.o strstuff.o
  26. cdbsplit.o : cdbsplit.c strstuff.h
  27.  
  28. # for AmigaOS change clean-unix to clean-amiga
  29. clean : clean-unix
  30.  
  31. clean-amiga :
  32.     $(RM) $(targets) $(objects)
  33.     
  34. clean-unix :
  35.     -$(RM) $(targets) $(objects)
  36.  
  37. # for AmigaOS installation change install-binary-unix to
  38. # install-binary-amiga; for non-debian-installation, use `make all'
  39.  
  40. install : install-binary-unix # install-manpages
  41.  
  42. install-binary-amiga :
  43.     $(INSTALL) $(targets) C:
  44.  
  45. install-binary-unix :
  46.     @for file in $(targets); do \
  47.       $(INSTALL) -m 0755 $$file $(DESTDIR)/$(binprefix)/$$file; \
  48.     done;
  49.  
  50. install-manpages :
  51.     @for file in doc/*.6; do \
  52.       $(INSTALL) -m 0644 $$file $(DESTDIR)/$(manprefix)/$$file; \
  53.     done;
  54.  
  55. all : build install install-manpages
  56.